package com.guangzi.service.impl;

import com.guangzi.entity.BorrowDetailVO;
import com.guangzi.mapper.BorrowDetailDao;
import com.guangzi.service.AbstractService;
import com.guangzi.service.BorrowDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BorrowDetailServiceImpl extends AbstractService implements BorrowDetailService {

    private BorrowDetailDao borrowDetailDAO;

    @Autowired
    public void setBorrowDetailDAO(BorrowDetailDao borrowDetailDAO) {
        super.setBaseDAO(borrowDetailDAO);
        this.borrowDetailDAO = borrowDetailDAO;
    }

    @Override
    public void updateTupian(Object obj) {
        borrowDetailDAO.updateTupian(obj);
    }

    @Override
    public void updateBybaid(Object obj) {
        borrowDetailDAO.updateBybaid(obj);
    }

    @Override
    public BorrowDetailVO findDetails(Long baid) {
        return borrowDetailDAO.findDetails(baid);
    }

    @Override
    public BorrowDetailVO find(Long baid) {
        return borrowDetailDAO.find(baid);
    }


    @Override
    public BorrowDetailVO findWay(Long uid, Long juid,Long baid) {

        return borrowDetailDAO.findWay(uid, juid,baid);
    }


}
